package net.maku.system.facade;

import net.maku.system.api.facade.SysRoleDataScopeFacade;
import net.maku.system.dao.SysRoleDataScopeDao;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class SysRoleDataScopeFacadeImpl implements SysRoleDataScopeFacade {

    private final SysRoleDataScopeDao sysRoleDataScopeDao;

    public SysRoleDataScopeFacadeImpl(SysRoleDataScopeDao sysRoleDataScopeDao) {
        this.sysRoleDataScopeDao = sysRoleDataScopeDao;
    }

    @Override
    public List<Long> getDataScopeList(Long id) {
        return sysRoleDataScopeDao.getDataScopeList(id);
    }
}
